//
//  AppUtility.h
//  iLiteNote
//
//  Created by xiangbc on 16/4/7.
//  Copyright © 2016年 LiteNice. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIScreen.h>

#define ScreenWidth [[UIScreen mainScreen] bounds].size.width
#define ScreenHeight [[UIScreen mainScreen] bounds].size.height

@interface AppUtility : NSObject

// 判断是否为vim加密文本
+ (BOOL) isCryptFileWithData:(NSData *)data;
+ (BOOL) isCryptFileWithFileName:(NSString *)filename;

// 判断当前设备是否为ipad
+ (BOOL) isIPad;

// 计算文件夹的大小，单位为MB
+ (float) folderSizeAtPath:(NSString*) folderPath;

// 移动文件夹
+ (BOOL)moveFolder:(NSString*)dstPath src:(NSString*)srcPath;

//删除文件夹
+ (BOOL)deleteFolder:(NSString*)path;

@end

// 刷新左侧树控件的回调
typedef void(^TreeViewReloadBlock)();
